Skip to content

Add engine updates for llama.cpp, LM Studio, and vLLM - #237

Open
NV-sschneider wants to merge 12 commits into
NVIDIA:developfrom
NV-sschneider:codex/engine-updates-providers
Open

NV-sschneider wants to merge 12 commits into
NVIDIA:developfrom
NV-sschneider:codex/engine-updates-providers

Conversation

@NV-sschneider

@NV-sschneider NV-sschneider commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Description

The local engine update controls now work with three more engines. PAIR determines the applicable release from each engine’s installation and packaging.

PR 2 of 4. Merge after #236. Review this PR’s changes.

Merge order is #236 → #237 → #238 → #239.

Release intent

Changelog title

Show and apply updates for llama.cpp, LM Studio, and vLLM

Changelog body

  • Engine settings shows applicable updates for llama.cpp, LM Studio, and vLLM.
  • Apply eligible managed updates in PAIR or open the vendor’s instructions for an external installation.

Bumps

  • services: minor
  • nvpair-cluster-manager: none
  • nvpair-engine-manager: minor
  • nvpair-errors: none
  • nvpair-job-scheduler: none
  • nvpair-manual-nodes: none
  • nvpair-node-info: none
  • nvpair-node-scanner: none
  • nvpair-node-settings: none
  • nvpair-proxy: none
  • nvpair-tui: none
  • nvpair-ui-broker: none
  • nvpair-workload-manager: none

Scope

  • llama.cpp selects the platform-matched server archive and companion CUDA archive where required. The Windows installer extracts the archives using Windows PowerShell’s bundled archive module.
  • LM Studio checks the installed product and build. Desktop installations get vendor instructions. For a managed headless installation, PAIR runs the daemon updater.
  • vLLM compares a managed environment with PAIR’s platform-specific package pin and rebuilds the environment when an update is available.

Validation

  • On Windows x64, 24 focused desktop tests and npm run service-contracts:check passed.
  • The cross-process broker test passed all 13 subtests using the real service binaries. Provider fixtures cover Windows PowerShell archive extraction, LM Studio build detection and managed daemon updates, and vLLM pinning and rollback.
  • Verified the five provider commits against the four-engine reference and validated their author sign-offs, whitespace, and release intent.
  • All 18 provider-specific Go tests passed on Windows, including archive extraction and rollback. The full engine-manager command exceeded its 10-minute shell timeout.

Risk

The three engines use different release and installation mechanisms. Updating a running managed engine can interrupt inference. The vLLM updater checks model storage before replacing the environment and restores the previous environment if the replacement fails.

Checklist

  • I read the Contributing Guidelines.
  • Every commit has a Developer Certificate of Origin sign-off matching its author.
  • Tests cover the change.
  • The relevant documentation is updated.
  • I reviewed the diff, filenames, and commit messages for credentials, private data, internal references, and generated artifacts.
  • I recorded the validation commands and results above.
  • I declared version bumps in the release-intent block above.

Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
}

func llamaModelsOutsideInstall(st *engineState, args, env []string) bool {
stores := []string{environmentValue(env, "LLAMA_CACHE"), environmentValue(env, "LLAMA_ARG_MODELS_DIR"),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Protect multimodal projector files before replacing the llama.cpp installation

llamaModelsOutsideInstall protects the main model, cache and preset paths, but omits LLAMA_ARG_MMPROJ and the --mmproj / -mm options. A user can therefore configure a projector inside the managed installation, pass the managed-update eligibility check, and lose that file when the old installation is replaced and its backup is cleaned up.

I reproduced the file loss with genuine older-to-newer llama.cpp vendor upgrades on both DGX Spark and macOS: while the engine was OFF, I placed a disposable projector preservation file inside the managed install directory and set LLAMA_ARG_MMPROJ to its absolute path. The update succeeded and the version advanced, but the configured file disappeared. No real projector weights were used or destroyed in this test.

Proposed fix: include LLAMA_ARG_MMPROJ, --mmproj and -mm in the existing modelStoresOutsideInstall protection, for both saved launch configuration and running-process inputs. Apply the same filesystem-link checks used for the main model. Reject an unsafe managed update before replacing the installation so that the projector remains intact.

Please add regression cases in llamacpp_update_test.go for the environment setting, long and short argument forms, a projector reached through a filesystem link, and an external projector path that should remain eligible. The unsafe cases should retain the original installation and projector file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants